Optimal. Leaf size=34 \[ \frac {\cos \left (a+b x^n\right )}{b^2 n}+\frac {x^n \sin \left (a+b x^n\right )}{b n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {3461, 3377,
2718} \begin {gather*} \frac {\cos \left (a+b x^n\right )}{b^2 n}+\frac {x^n \sin \left (a+b x^n\right )}{b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3377
Rule 3461
Rubi steps
\begin {align*} \int x^{-1+2 n} \cos \left (a+b x^n\right ) \, dx &=\frac {\text {Subst}\left (\int x \cos (a+b x) \, dx,x,x^n\right )}{n}\\ &=\frac {x^n \sin \left (a+b x^n\right )}{b n}-\frac {\text {Subst}\left (\int \sin (a+b x) \, dx,x,x^n\right )}{b n}\\ &=\frac {\cos \left (a+b x^n\right )}{b^2 n}+\frac {x^n \sin \left (a+b x^n\right )}{b n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 29, normalized size = 0.85 \begin {gather*} \frac {\cos \left (a+b x^n\right )+b x^n \sin \left (a+b x^n\right )}{b^2 n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 44, normalized size = 1.29
method | result | size |
risch | \(\frac {\cos \left (a +b \,x^{n}\right )}{b^{2} n}+\frac {x^{n} \sin \left (a +b \,x^{n}\right )}{b n}\) | \(35\) |
default | \(\frac {\cos \left (a +b \,x^{n}\right )+\sin \left (a +b \,x^{n}\right ) \left (a +b \,x^{n}\right )-\sin \left (a +b \,x^{n}\right ) a}{n \,b^{2}}\) | \(44\) |
meijerg | error in int/gproduct: numeric exception: division by zero\ | N/A |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 29, normalized size = 0.85 \begin {gather*} \frac {b x^{n} \sin \left (b x^{n} + a\right ) + \cos \left (b x^{n} + a\right )}{b^{2} n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 29, normalized size = 0.85 \begin {gather*} \frac {b x^{n} \sin \left (b x^{n} + a\right ) + \cos \left (b x^{n} + a\right )}{b^{2} n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 29.00, size = 53, normalized size = 1.56 \begin {gather*} \begin {cases} \log {\left (x \right )} \cos {\left (a \right )} & \text {for}\: b = 0 \wedge n = 0 \\\frac {x^{2 n} \cos {\left (a \right )}}{2 n} & \text {for}\: b = 0 \\\log {\left (x \right )} \cos {\left (a + b \right )} & \text {for}\: n = 0 \\\frac {x^{n} \sin {\left (a + b x^{n} \right )}}{b n} + \frac {\cos {\left (a + b x^{n} \right )}}{b^{2} n} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int x^{2\,n-1}\,\cos \left (a+b\,x^n\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________